package com.example.inputpanel;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView textView = (TextView) findViewById(R.id.tv);
        textView.setText(getLanguage());


    }

    private String getLanguage() {
        return this.getResources().getConfiguration().locale.getCountry();

    }

    protected class Module {
        public int id;
        public String name;
        public String address;

        public Module(int id, String name, String address) {
            this.id = id;
            this.name = name;
            this.address = address;
        }
    }
}
